package com.iretailer.model;

import com.baomidou.mybatisplus.annotation.*;

import java.time.LocalDateTime;

import static com.baomidou.mybatisplus.annotation.FieldFill.INSERT;

@TableName(value = "device")
public class Device {

    @TableId(type = IdType.ID_WORKER_STR)
    private String id;
    private String deviceName;
    private String siteId;
    //设备是否使用 -1 为不适用，1 为使用
    @TableField(fill = INSERT)
    private int deviceStatus = 1;

    private LocalDateTime updateTime;

    public Device() {
    }

    public Device(String deviceName, String siteId) {
        this.deviceName = deviceName;
        this.siteId = siteId;
    }

    public int getDeviceStatus() {
        return deviceStatus;
    }

    public void setDeviceStatus(int deviceStatus) {
        this.deviceStatus = deviceStatus;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getDeviceName() {
        return deviceName;
    }

    public void setDeviceName(String deviceName) {
        this.deviceName = deviceName;
    }

    public String getSiteId() {
        return siteId;
    }

    public void setSiteId(String siteId) {
        this.siteId = siteId;
    }

    public LocalDateTime getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(LocalDateTime updateTime) {
        this.updateTime = updateTime;
    }
}
